<?php

namespace App\Http\Model;

use Illuminate\Database\Eloquent\Model;
//软删除类
use Illuminate\Database\Eloquent\SoftDeletes;

class Type extends Model
{
    // 调用定义的trait类 和继承效果一样
    use SoftDeletes;

    // 软删除标识字段
    protected $dates = ['deleted_at'];
    // 定义关联的数据表
    protected $table='tb_type';
    protected $primaryKey='typeid';

    // 禁用时间字段
    public $timestamps=false;
}
